﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<link href="<%=path%>/css/style_main.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/BackStyle.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="<%=path%>/css/ajaxtabs.css" />

<script type="text/javascript" src="<%=path%>/js/ajaxtabs.js">

/***********************************************
* Ajax Tabs Content script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>
</head>

<body>
<div class="box">
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="<%=path %>/realtime_data.do?method=findRealData">状态指标监控</a></li>
<li><a href="<%=path %>/html/monitor/external01.jsp">动态曲线</a></li>
<li><a href="<%=path %>/html/monitor/external02.jsp">机床布局</a></li>
</ul>

<div id="state" class="contentstyle">
  <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#8ECAEB" 
            border="0">
    <tbody>
      <tr bgcolor="#e2e0d3">
        <td bgcolor="#8ECAEB"><table cellspacing="1" cellpadding="3" width="100%" bgcolor="#8ECAEB" 
            border="0">
            <tbody>
              <tr bgcolor="#e2e0d3">
                <td bgcolor="#C6E4F4" class="s9">记录时间</td>
                <td bgcolor="#C6E4F4" class="s9">机床编号</td>
                <td bgcolor="#C6E4F4" class="s9"><font color="#000000">机床名称</font></td>
                <td bgcolor="#C6E4F4" class="s9">机床状态</td>
                <td bgcolor="#C6E4F4" class="s9">监控指标</td>
                <td bgcolor="#C6E4F4" class="s9">指标值</td>
                <td bgcolor="#C6E4F4" class="s9">指标单位</td>
              </tr>
              <c:forEach items="${beans}" var="bean">
              <tr bgcolor="#f8f7f2">
                <td bgcolor="#FFFFFF" class="s19">${bean.time }&nbsp;</td>
                <td bgcolor="#FFFFFF" class="s19">${bean.modeCode }&nbsp;</td>
                <td bgcolor="#FFFFFF" class="s19">${bean.modeName }&nbsp;</td>
                <td bgcolor="#FFFFFF" class="s19">${bean.modeStaut }&nbsp;</td>
                <td bgcolor="#FFFFFF" class="s19" onclick="divDetail.style.display='inline'">${bean.indexConfig }&nbsp;</td>
                <td bgcolor="#FFFFFF" class="s19" onclick="divDetail.style.display='inline'">${bean.configVal }&nbsp;</td>
                <td bgcolor="#FFFFFF" class="s19" onclick="divDetail.style.display='inline'">${bean.configUnit }&nbsp;</td>
              </tr>
             </c:forEach>
            </tbody>
          </table>
            <table cellspacing="5" cellpadding="0" width="100%" border="0" bgcolor="#DAEDF8">
              <tbody>
                <tr >
                  <td align="center"><a href="#"><img src="<%=path%>/img/table/output.gif" alt="" width="60" height="20" border="0" /></a> <a href="#"><img src="<%=path%>/img/table/close.gif" alt="" width="60" height="20" border="0" /></a></td>
                </tr>
              </tbody>
            </table></td>
      </tr>
      <tr bgcolor="#e2e0d3">
        <td height="1" bgcolor="#8ECAEB"></td>
      </tr>
    </tbody>
  </table>
</div>

<script type="text/javascript">
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
</script>
</div>
</body>
</html>
